package com.htfyun.roobofactory;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.provider.Settings;
import android.util.Log;

import com.htfyun.roobofactory.htfyunUtils.FTFloatUtils;

/**
 * Created by sst on 2018/5/30.
 */

public class BootCompletedReceiver extends BroadcastReceiver {

    private final static String TAG = "BootCompletedReceiver";
    @Override
    public void onReceive(Context context, Intent intent) {
        final String action = intent.getAction();
        if (action.equals(Intent.ACTION_BOOT_COMPLETED)) {
            Log.e(TAG, "~~~~~ Congratulation: We receive BootCompletedReceiver");

            FTFloatUtils.startFTFloat(context);

        }
    }
}
